<template>
  <div class="zuo">
    <van-nav-bar class="zen" title="提现记录" @click-left="goBack()" left-text="" left-arrow/>
    <el-form :model="form">
      <el-form-item label="">
        <div v-for="w in withdraw" class="bank-card">
          提现申请 {{ w.withdrawMoney }} <br>
          提现时间：{{ w.withdrawDay }}
          <button class="withdraw-button">已提现</button>
          <br><br>
        </div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import axios from "axios";

export default {
  data() {
    return {
      form: {},
      withdraw: [],
    };
  },
  methods: {
    goBack() {
      this.$router.go(-1);
    },
    findAllWithdraw() {
      axios.get('/personal/personal/findAllWithdraw').then(res => {
        this.withdraw = res.data;
      })
    }
  },
  created() {
    this.findAllWithdraw();
  },
};
</script>

<style scoped>
.zuo {
  text-align: left;
  margin-top: 10px;
}

.withdraw-button {
  background-color: lightgreen;
  border: none;
  border-radius: 40px;
  //padding: 10px 20px;
  color: green;
  font-size: 16px;
  width: 100px;
  height: 40px;
}

.bank-card {
  margin-left: 70px;
}
</style>
